package com.ruoyi.data.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单明细对象 data_sale_item
 *
 * @author zzp
 * @date 2022-10-03
 */
public class DataSaleItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 销售ID
     */
    @Excel(name = "销售ID")
    private Long saleId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long goodId;

    /**
     * 商品代码
     */
    @Excel(name = "商品代码")
    private String goodCode;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodName;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String goodImg;

    /**
     * 金豆数量
     */
    @Excel(name = "金豆数量")
    private Integer goldAmount;

    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    private Integer goodAmount;

    /**
     * 商品金豆
     */
    @Excel(name = "商品金豆")
    private Integer goldBean;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSaleId(Long saleId) {
        this.saleId = saleId;
    }

    public Long getSaleId() {
        return saleId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoldAmount(Integer goldAmount) {
        this.goldAmount = goldAmount;
    }

    public Integer getGoldAmount() {
        return goldAmount;
    }

    public void setGoodAmount(Integer goodAmount) {
        this.goodAmount = goodAmount;
    }

    public Integer getGoodAmount() {
        return goodAmount;
    }

    public String getGoodImg() {
        return goodImg;
    }

    public void setGoodImg(String goodImg) {
        this.goodImg = goodImg;
    }

    public Integer getGoldBean() {
        return goldBean;
    }

    public void setGoldBean(Integer goldBean) {
        this.goldBean = goldBean;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("saleId", getSaleId())
                .append("goodId", getGoodId())
                .append("goodCode", getGoodCode())
                .append("goodName", getGoodName())
                .append("goldAmount", getGoldAmount())
                .append("goodAmount", getGoodAmount())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
